import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
import Layout from "@/views/root/home/root.vue";
import Home from "@/views/root/home/Home.vue";
import Doctor from "@/views/old/Doctor.vue";
import Note from "@/views/old/Note.vue";
import DoctorShow from "@/views/old/DoctorShow.vue";
import Patient from "@/views/root/Patient/Patient.vue";
import Escort from "@/views/root/Escort/Escort.vue";
import Appointment from "@/views/root/Appointment/Appointment.vue";
import Appointment2 from "@/views/root/Appointment/Appointment2.vue";
import ServiceRecord from "@/views/root/ServiceRecord/ServiceRecord.vue";
import User from "@/views/root/User/User.vue";
import Login from "@/views/Login/Login.vue";

const router = createRouter({
    history: createWebHashHistory(), routes: [{
        path: '/',
        component: Layout,
        redirect: '/home',
        children: [{path: 'home', component: Home}, {path: 'patient', component: Patient}, {
            path: 'escort', component: Escort
        }, {path: 'appointment', component: Appointment}, {
            path: 'appointment2', component: Appointment2
        }, {path: 'serviceRecord', component: ServiceRecord}, {path: 'user', component: User}, {
            path: 'login', component: Login
        }, {path: 'note', component: Note}, {path: 'doctorShow', component: DoctorShow}]
    }],
})

export default router
